//可以用立即执行函数对图表进行初始化
//因为函数里的变量是局部变量，不存在命名污染的问题
//柱状图模块1
(function() {
    // 1-实例化对象;
    var myChart = echarts.init(document.querySelector(".bar .chart"));
    // 2 -指定配置项和数据
    var option = {
        color: ['#2f89cf'],
        tooltip: {
            trigger: 'axis',
            axisPointer: { // 坐标轴指示器，坐标轴触发有效
                type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
            }
        },
        //修改图表的大小
        grid: {
            left: '0%',
            top: '10px',
            right: '0%',
            bottom: '0%',
            containLabel: true
        },
        xAxis: [{
            type: 'category',
            data: ['动物圈', '动画', '国创', '娱乐', '番剧', '数码', '游戏'],
            axisTick: {
                alignWithLabel: true
            },
            //设置字体大小
            axisLabel: {
                color: 'rgba(255,255,255,.6)',
                fontSize: '12',
            },
            //x轴样式不显示
            axisLine: {
                show: false
            }
        }],
        yAxis: [{
            type: 'value',
            axisLabel: {
                color: 'rgba(255,255,255,.6)',
                fontSize: '12',
            },
            //y轴的线
            axisLine: {
                lineStyle: {
                    color: "rgba(255,255,255,.1)",
                    width: 1,
                }
            },
            //y轴分割线的颜色
            splitLine: {
                lineStyle: {

                    color: "rgba(255,255,255,.1)"
                }
            }
        }, ],
        series: [{
            name: '涨粉率',
            type: 'bar',
            barWidth: '45%',
            data: [0.29, 0.11, 0.08, 0.19, 0.21, 0.05, 0.07],
            itemStyle: {
                //修改柱子的圆角
                barBorderRadius: 5
            }
        }]
    };
    //3-把配置项给实例对象
    myChart.setOption(option);
    //4-让图表跟随屏幕自适应
    //第一个resize是当屏幕尺寸发生变化时候的监听时间
    //第二个resize是echarts里面的函数
    window.addEventListener('resize', function() {
        myChart.resize();
    })
})();
//柱状图2
(function() {
    var myColor = ["#1089E7", "#F57474", "#56D0E3", "#F8B448", "#8B78F6", "pink"];
    var myChart = echarts.init(document.querySelector('.bar2 .chart'));
    var option = {
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        grid: {
            top: '5%',
            left: '22%',
            bottom: '5%',
            // containLabel: false
        },
        //不显示x轴
        xAxis: {
            show: false
        },
        //y轴的对象和series的对象一一对应
        yAxis: [{
            type: 'category',
            //将数据反向
            inverse: true,
            data: ['动物圈', '动画', '国创', '娱乐', '番剧', '电影'],
            axisLine: {
                show: false
            },
            //不显示刻度
            axisTick: {
                show: false
            },
            axisLabel: {
                color: '#fff'
            }
        }, {
            inverse: true,
            show: true,
            data: [702, 350, 610, 793, 664, 500],
            // 不显示y轴的线
            axisLine: {
                show: false
            },
            // 不显示刻度
            axisTick: {
                show: false
            },
            axisLabel: {
                textStyle: {
                    fontSize: 12,
                    color: "#fff"
                }
            }
        }, ],
        series: [{
                name: '条',
                type: 'bar',
                data: [70, 34, 60, 78, 69, 80],
                //设置层叠属性，来实现覆盖效果
                yAxisIndex: 0,
                //修改第一条柱子的边距和颜色
                itemStyle: {
                    barBorderRadius: 20,
                    //params是个对象，里面有对数据的所有dataIndex
                    color: function(params) {
                        return myColor[params.dataIndex]
                    }
                },
                barCategoryGap: 50,
                barWidth: 10,
                label: {
                    normal: {
                        show: true,
                        //在柱子内显示数据
                        position: "inside",
                        //{c}自动换算data里面的数据
                        formatter: "{c}%",
                        color: '#fff'
                    }
                }
            },
            {

                name: '框',
                type: 'bar',
                barCategoryGap: 50,
                barWidth: 15,
                yAxisIndex: 1,
                data: [100, 100, 100, 100, 100, 100],
                itemStyle: {
                    borderColor: "#00c1de",
                    //params是个对象，里面有对数据的所有dataIndex
                    color: "none",
                    borderWidth: 3,
                    barBorderRadius: 15
                },
            }
        ]
    };
    myChart.setOption(option);
    window.addEventListener('resize', function() {
        myChart.resize();
    })
})();
//折线图1
(function() {
    // 1-实例化对象;
    var myChart = echarts.init(document.querySelector(".line .chart"));
    var yearData = [{
            year: '春季', // 年份
            data: [ // 两个数组是因为有两条线
                [24, 40, 101, 134, 90, 230, 210, 230, 120, 230, 210, 120],
                [40, 64, 191, 324, 290, 330, 310, 213, 180, 200, 180, 79]
            ]
        },
        {
            year: '夏季', // 年份
            data: [ // 两个数组是因为有两条线
                [123, 175, 112, 197, 121, 67, 98, 21, 43, 64, 76, 38],
                [143, 131, 165, 123, 178, 21, 82, 64, 43, 60, 19, 34]
            ]
        }
    ];

    // 2 -指定配置项和数据
    var option = {
        //修改折线图的线的颜色
        color: ['#00f2f1', '#ed3f35'],
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            //修改上方图例组件的文字颜色
            textStyle: {
                color: " #4c9bfd"
            },
            top: '0%'
        },
        grid: {
            top: '20px',
            left: '0%',
            right: '3%',
            bottom: '0%',
            show: true, //显示边框
            borderColor: '#012f4a', // 边框颜色
            containLabel: true //把刻度也算进边距计算里面去
        },

        xAxis: {
            type: 'category',
            boundaryGap: false, //去除轴内间距
            data: ['1点', '2点', '3点', '4点', '5点', '6点', '7点', '8点', '9点', '10点', '11点', '12点'],
            axisTick: {
                show: false //去除刻度线
            },
            axisLabel: {
                color: 'rgba(255,255,255,.6)' //文本颜色
            },
            axisLine: {
                show: false //去除轴线
            },
        },
        yAxis: {
            type: 'value',
            axisTick: {
                show: false //去除刻度线
            },
            axisLabel: {
                color: 'rgba(255,255,255,.6)' //文本颜色
            },
            axisLine: {
                show: false //去除轴线
            },
            //修改分割线的颜色
            splitLine: {
                lineStyle: {
                    color: "#012f4a"
                }
            }
        },
        series: [{
                name: '学生',
                type: 'line',
                //让线段的变得圆滑起来
                smooth: 'true',
                data: yearData[0].data[0],
            },
            {
                name: '上班族',
                type: 'line',
                // 数据堆叠，同个类目轴上系列配置相同的stack值后，后一个系列的值会在前一个系列的值上相加。
                // stack: '总量',
                smooth: 'true',
                data: yearData[1].data[1]
            },


        ]
    };
    myChart.setOption(option);
    window.addEventListener('resize', function() {
        myChart.resize();
    })

    //点击切换效果,利用jQuery
    $('.line h2').on('click', 'a', function() {
        //点击a之后，根据a的索引号找到对应的yearDate的相关对象
        //$(this).index()是当前a的索引号
        var obj = yearData[$(this).index()];
        option.series[0].data = obj.data[0];
        option.series[1].data = obj.data[1];
        //数据变了，所以需要重新渲染一次
        myChart.setOption(option);
    })

})();
//折线图2
(function() {
    var myChart = echarts.init(document.querySelector(".line2 .chart"));
    var option = {

        tooltip: {
            trigger: 'axis',
        },
        legend: {

            textStyle: {
                color: "rgba(255,255,255,.5)",
                fontSize: "12"
            },
            top: '0%',
        },
        grid: {
            left: '10px',
            top: "30px",
            right: '10px',
            bottom: '10px',
            containLabel: true
        },
        xAxis: [{
            type: 'category',
            //true就与y轴隔一端，false的话就是从y轴开始
            boundaryGap: false,
            data: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "26", "28", "29", "30"],
            axisLabel: {
                textStyle: {
                    color: "rgba(255,255,255,.6)",
                    fontSize: 12
                }
            },
            axisLine: {
                lineStyle: {
                    color: "rgba(255,255,255,.2)"
                }
            }

        }],

        yAxis: [{
            type: 'value',
            axisLabel: {
                textStyle: {
                    color: "rgba(255,255,255,.6)",
                    fontSize: 12
                }
            },
            axisLine: {
                lineStyle: {
                    color: "rgba(255,255,255,.2)"
                }
            },
            axisTick: {
                show: false
            },
            splitLine: {
                lineStyle: {
                    color: "rgba(255,255,255,.1)"
                }
            }
        }],
        series: [{
                smooth: true,
                name: '番剧',
                type: 'line',
                // stack: '总量',
                lineStyle: {
                    color: "#0184d5",
                    width: 2
                },
                areaStyle: {
                    // 渐变色，只需要复制即可
                    color: new echarts.graphic.LinearGradient(
                        0,
                        0,
                        0,
                        1, [{
                                offset: 0,
                                color: "rgba(1, 132, 213, 0.4)" // 渐变色的起始颜色
                            },
                            {
                                offset: 0.8,
                                color: "rgba(1, 132, 213, 0.1)" // 渐变线的结束颜色
                            }
                        ],
                        false
                    ),
                    shadowColor: "rgba(0, 0, 0, 0.1)"
                },
                // 设置拐点 小圆点
                symbol: "circle",
                // 拐点大小
                symbolSize: 8,
                // 设置拐点颜色以及边框
                itemStyle: {
                    color: "#0184d5",
                    borderColor: "rgba(221, 220, 107, .1)",
                    borderWidth: 12
                },
                // 开始不显示拐点， 鼠标经过显示
                showSymbol: false,
                emphasis: {
                    focus: 'series'
                },
                data: [30, 40, 30, 40, 30, 40, 30, 60, 20, 40, 30, 40, 30, 40, 30, 40, 30, 60, 20, 40, 30, 40, 30, 40, 30, 40, 20, 60, 50, 40],
            },
            {
                smooth: true,
                name: '鬼畜',
                type: 'line',
                lineStyle: {
                    normal: {
                        color: "#00d887",
                        width: 2
                    }
                },
                // stack: '总量',
                // areaStyle: {},
                areaStyle: {
                    // 渐变色，只需要复制即可
                    color: new echarts.graphic.LinearGradient(
                        0,
                        0,
                        0,
                        1, [{
                                offset: 0,
                                color: "rgba(0, 216, 135, 0.4)" // 渐变色的起始颜色
                            },
                            {
                                offset: 0.8,
                                color: "rgba(0, 216, 135, 0.1)" // 渐变线的结束颜色
                            }
                        ],
                        false
                    ),
                    shadowColor: "rgba(0, 0, 0, 0.1)"
                },
                // 设置拐点 小圆点
                symbol: "circle",
                // 拐点大小
                symbolSize: 8,
                // 设置拐点颜色以及边框
                itemStyle: {
                    color: "#00d887",
                    borderColor: "rgba(221, 220, 107, .1)",
                    borderWidth: 12
                },
                // 开始不显示拐点， 鼠标经过显示
                showSymbol: false,
                emphasis: {
                    focus: 'series'
                },
                data: [130, 10, 20, 40, 30, 40, 80, 60, 20, 40, 90, 40, 20, 140, 30, 40, 130, 20, 20, 40, 80, 70, 30, 40, 30, 120, 20, 99, 50, 20],
            },

        ]
    };
    myChart.setOption(option);
    window.addEventListener('resize', function() {
        myChart.resize();
    })
})();
//饼形图1
(function() {
    var myChart = echarts.init(document.querySelector('.pie .chart'));
    var option = {
        tooltip: {
            trigger: 'item'
        },
        legend: {
            bottom: '0%',
            // left: '0',
            //图例朝向
            // orient: 'vertical',
            //修改小图标的宽度和高度
            itemWidth: 10,
            itemHeight: 10,
            //修改图例组件文字大小
            textStyle: {
                color: 'rgba(255,255,255,.5)',
                fontSize: '12'
            }
        },
        series: [{
            name: '年龄分布',
            type: 'pie',
            //radius修改饼形图的大小
            //内圆半径和外圆半径，相对于width来说的
            radius: ['40%', '60%'],
            center: ['50%', '50%'],
            avoidLabelOverlap: false,
            label: {
                show: false,
                // position: 'center'
            },
            emphasis: {
                label: {
                    show: false,
                    fontSize: '40',
                    fontWeight: 'bold'
                }
            },
            //连接文字和图形的线
            labelLine: {
                show: false
            },
            data: [
                { value: 1, name: "0岁以下" },
                { value: 4, name: "20-29岁" },
                { value: 2, name: "30-39岁" },
                { value: 2, name: "40-49岁" },
                { value: 1, name: "50岁以上" }
            ],

        }]
    };
    myChart.setOption(option);
    window.addEventListener('resize', function() {
        myChart.resize();
    })
})();
//饼形图2
(
    function() {
        var myChart = echarts.init(document.querySelector('.pie2 .chart'));
        var option = {
            tooltip: {
                trigger: 'item',
                formatter: '{a} <br/>{b} : {c} ({d}%)'
            },
            color: ['#006cff', '#60cda0', '#ed8884', '#ff9f7f', '#0096ff', '#9fe6b8', '#32c5e9', '#1d9dff'],
            // legend: {
            //     bottom: '-5%',
            //     itemWidth: 10,
            //     itemHeight: 10,
            //     textStyle: {
            //         color: 'rgba(255,255,255,.5)',
            //         fontSize: '12'
            //     }
            // },
            series: [

                {
                    name: '地区分布',
                    type: 'pie',
                    radius: ['15%', '80%'],
                    //修改位置
                    center: ['50%', '50%'],

                    // 修改为面积模式
                    roseType: 'radius',
                    itemStyle: {
                        borderRadius: 5
                    },
                    labelLine: {
                        //连接图形的线length
                        //连接文字的线length2
                        length: 6,
                        length2: 8
                    },
                    data: [
                        { value: 20, name: '云南' },
                        { value: 26, name: '北京' },
                        { value: 24, name: '山东' },
                        { value: 25, name: '河北' },
                        { value: 20, name: '江苏' },
                        { value: 25, name: '浙江' },
                        { value: 30, name: '四川' },
                        { value: 42, name: '湖北' }
                    ],
                    //图形的文字标签
                    label: {
                        fontSize: '10',
                        color: '#ccc',
                    }
                }
            ]
        };
        myChart.setOption(option);
        window.addEventListener('resize', function() {
            myChart.resize();
        })
    }
)();
//模拟地图
(function() {
    var myChart = echarts.init(document.querySelector('.map .map-china'));
    var flyCity = [{
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "上海",
            "coords": [
                [
                    121.383863,
                    31.241423
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFF68F"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "临沂",
            "coords": [
                [
                    118.354238,
                    35.110037
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFEFD5"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "佛山",
            "coords": [
                [
                    113.142351,
                    23.015131
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFE4E1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "兰州",
            "coords": [
                [
                    103.862785,
                    36.072063
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFDEAD"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "北京",
            "coords": [
                [
                    116.309611,
                    39.863886
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFC1C1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南京",
            "coords": [
                [
                    118.728305,
                    32.002497
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFB90F"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南宁",
            "coords": [
                [
                    108.400417,
                    22.810224
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFA54F"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南昌",
            "coords": [
                [
                    115.855204,
                    28.685765
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF8C00"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南通",
            "coords": [
                [
                    120.888446,
                    31.966087
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF7F50"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "厦门",
            "coords": [
                [
                    118.092514,
                    24.469729
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF6EB4"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "台州",
            "coords": [
                [
                    121.400611,
                    28.601611
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF4500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "合肥",
            "coords": [
                [
                    117.297564,
                    31.710295
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF3030"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "呼和浩特",
            "coords": [
                [
                    111.69747,
                    40.82795
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFF5EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "哈尔滨",
            "coords": [
                [
                    126.561466,
                    45.735821
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFEC8B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "唐山",
            "coords": [
                [
                    118.1767,
                    39.664336
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFE4C4"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "嘉兴",
            "coords": [
                [
                    120.730595,
                    30.75766
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFDAB9"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "大连",
            "coords": [
                [
                    121.584144,
                    38.885703
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFC125"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "天津",
            "coords": [
                [
                    117.179204,
                    39.093959
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFB6C1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "太原",
            "coords": [
                [
                    112.561385,
                    37.822709
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFA500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "宁波",
            "coords": [
                [
                    121.266189,
                    30.175033
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF83FA"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "常州",
            "coords": [
                [
                    119.939633,
                    31.707966
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF7F24"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "广州",
            "coords": [
                [
                    113.314506,
                    23.125237
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF6A6A"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "徐州",
            "coords": [
                [
                    117.186228,
                    34.270442
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF4040"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "成都",
            "coords": [
                [
                    104.059444,
                    30.603827
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF83FA"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "扬州",
            "coords": [
                [
                    119.388959,
                    32.363361
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#ADADAD"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "无锡",
            "coords": [
                [
                    120.270296,
                    31.90005
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A9A9A9"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "昆明",
            "coords": [
                [
                    102.686472,
                    25.008286
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A4D3EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "杭州",
            "coords": [
                [
                    120.096085,
                    30.313203
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A1A1A1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "武汉",
            "coords": [
                [
                    114.270967,
                    30.59572
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#9F79EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "沈阳",
            "coords": [
                [
                    123.384681,
                    41.803024
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#9B30FF"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "泉州",
            "coords": [
                [
                    118.599769,
                    24.882543
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#9A32CD"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "洛阳",
            "coords": [
                [
                    112.407547,
                    34.644496
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#98F5FF"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "济南",
            "coords": [
                [
                    117.006218,
                    36.595446
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#949494"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "海口",
            "coords": [
                [
                    109.862472,
                    18.454776
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#912CEE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "深圳",
            "coords": [
                [
                    113.885756,
                    22.551531
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8EE5EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "温州",
            "coords": [
                [
                    120.681694,
                    28.006381
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8DEEEE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "湖州",
            "coords": [
                [
                    120.102846,
                    30.866746
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B8B7A"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "烟台",
            "coords": [
                [
                    121.37308,
                    37.543501
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B8878"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "珠海",
            "coords": [
                [
                    113.520408,
                    22.226293
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B8378"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "石家庄",
            "coords": [
                [
                    114.523689,
                    38.043209
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B7D6B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "福州",
            "coords": [
                [
                    119.3363,
                    26.090756
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B7500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "绍兴",
            "coords": [
                [
                    120.580143,
                    29.985341
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B668B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "舟山",
            "coords": [
                [
                    122.16409,
                    29.970764
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B5A2B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "西安",
            "coords": [
                [
                    108.898987,
                    34.238785
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B4789"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "贵阳",
            "coords": [
                [
                    106.649665,
                    26.645575
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B4500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "郑州",
            "coords": [
                [
                    113.716917,
                    34.762535
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B3626"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "重庆",
            "coords": [
                [
                    106.49767,
                    29.601397
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B1C62"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "金华",
            "coords": [
                [
                    119.63781,
                    29.079416
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B0000"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "长春",
            "coords": [
                [
                    125.350729,
                    43.894244
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#87CEFF"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "长沙",
            "coords": [
                [
                    112.935915,
                    28.221726
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#858585"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "青岛",
            "coords": [
                [
                    120.183262,
                    35.952313
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#ABABAB"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "鞍山",
            "coords": [
                [
                    122.994118,
                    41.109248
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A8A8A8"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "洛杉矶",
            "coords": [
                [
                    150.972421,
                    30.050227
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#87CEFF"
        }
    ]
    var allCity = [{
            "id": 1,
            "createts": null,
            "modifyts": null,
            "cityName": "上海",
            "saleStoreName": null,
            "fromLa": 121.383863,
            "fromlo": 31.241423,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "doneCity",
            "userId": null,
            "color": "#FFF68F"
        },
        {
            "id": 2,
            "createts": null,
            "modifyts": null,
            "cityName": "临沂",
            "saleStoreName": null,
            "fromLa": 118.354238,
            "fromlo": 35.110037,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "doneCity",
            "userId": null,
            "color": "#FFEFD5"
        },
        {
            "id": 3,
            "createts": null,
            "modifyts": null,
            "cityName": "佛山",
            "saleStoreName": null,
            "fromLa": 113.142351,
            "fromlo": 23.015131,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "doneCity",
            "userId": null,
            "color": "#FFE4E1"
        },
        {
            "id": 4,
            "createts": null,
            "modifyts": null,
            "cityName": "兰州",
            "saleStoreName": null,
            "fromLa": 103.862785,
            "fromlo": 36.072063,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "flyCity",
            "userId": null,
            "color": "#FFDEAD"
        },
        {
            "id": 5,
            "createts": null,
            "modifyts": null,
            "cityName": "北京",
            "saleStoreName": null,
            "fromLa": 116.309611,
            "fromlo": 39.863886,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "doneCity",
            "userId": null,
            "color": "#FFC1C1"
        },
        {
            "id": 6,
            "createts": null,
            "modifyts": null,
            "cityName": "南京",
            "saleStoreName": null,
            "fromLa": 118.728305,
            "fromlo": 32.002497,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "doneCity",
            "userId": null,
            "color": "#FFB90F"
        },
        {
            "id": 7,
            "createts": null,
            "modifyts": null,
            "cityName": "南宁",
            "saleStoreName": null,
            "fromLa": 108.400417,
            "fromlo": 22.810224,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "doneCity",
            "userId": null,
            "color": "#FFA54F"
        },
        {
            "id": 8,
            "createts": null,
            "modifyts": null,
            "cityName": "南昌",
            "saleStoreName": null,
            "fromLa": 115.855204,
            "fromlo": 28.685765,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF8C00"
        },
        {
            "id": 9,
            "createts": null,
            "modifyts": null,
            "cityName": "南通",
            "saleStoreName": null,
            "fromLa": 120.888446,
            "fromlo": 31.966087,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF7F50"
        },
        {
            "id": 10,
            "createts": null,
            "modifyts": null,
            "cityName": "厦门",
            "saleStoreName": null,
            "fromLa": 118.092514,
            "fromlo": 24.469729,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF6EB4"
        },
        {
            "id": 11,
            "createts": null,
            "modifyts": null,
            "cityName": "台州",
            "saleStoreName": null,
            "fromLa": 121.400611,
            "fromlo": 28.601611,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF4500"
        },
        {
            "id": 12,
            "createts": null,
            "modifyts": null,
            "cityName": "合肥",
            "saleStoreName": null,
            "fromLa": 117.297564,
            "fromlo": 31.710295,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF3030"
        },
        {
            "id": 13,
            "createts": null,
            "modifyts": null,
            "cityName": "呼和浩特",
            "saleStoreName": null,
            "fromLa": 111.69747,
            "fromlo": 40.82795,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "flyCity",
            "userId": null,
            "color": "#FFF5EE"
        },
        {
            "id": 14,
            "createts": null,
            "modifyts": null,
            "cityName": "哈尔滨",
            "saleStoreName": null,
            "fromLa": 126.561466,
            "fromlo": 45.735821,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FFEC8B"
        },
        {
            "id": 15,
            "createts": null,
            "modifyts": null,
            "cityName": "唐山",
            "saleStoreName": null,
            "fromLa": 118.1767,
            "fromlo": 39.664336,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FFE4C4"
        },
        {
            "id": 16,
            "createts": null,
            "modifyts": null,
            "cityName": "嘉兴",
            "saleStoreName": null,
            "fromLa": 120.730595,
            "fromlo": 30.75766,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FFDAB9"
        },
        {
            "id": 17,
            "createts": null,
            "modifyts": null,
            "cityName": "大连",
            "saleStoreName": null,
            "fromLa": 121.584144,
            "fromlo": 38.885703,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FFC125"
        },
        {
            "id": 18,
            "createts": null,
            "modifyts": null,
            "cityName": "天津",
            "saleStoreName": null,
            "fromLa": 117.179204,
            "fromlo": 39.093959,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FFB6C1"
        },
        {
            "id": 19,
            "createts": null,
            "modifyts": null,
            "cityName": "太原",
            "saleStoreName": null,
            "fromLa": 112.561385,
            "fromlo": 37.822709,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FFA500"
        },
        {
            "id": 20,
            "createts": null,
            "modifyts": null,
            "cityName": "宁波",
            "saleStoreName": null,
            "fromLa": 121.266189,
            "fromlo": 30.175033,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF83FA"
        },
        {
            "id": 21,
            "createts": null,
            "modifyts": null,
            "cityName": "常州",
            "saleStoreName": null,
            "fromLa": 119.939633,
            "fromlo": 31.707966,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF7F24"
        },
        {
            "id": 22,
            "createts": null,
            "modifyts": null,
            "cityName": "广州",
            "saleStoreName": null,
            "fromLa": 113.314506,
            "fromlo": 23.125237,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF6A6A"
        },
        {
            "id": 23,
            "createts": null,
            "modifyts": null,
            "cityName": "徐州",
            "saleStoreName": null,
            "fromLa": 117.186228,
            "fromlo": 34.270442,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#FF4040"
        },
        {
            "id": 24,
            "createts": null,
            "modifyts": null,
            "cityName": "成都",
            "saleStoreName": null,
            "fromLa": 104.059444,
            "fromlo": 30.603827,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "flyCity",
            "userId": null,
            "color": "#FF83FA"
        },
        {
            "id": 25,
            "createts": null,
            "modifyts": null,
            "cityName": "扬州",
            "saleStoreName": null,
            "fromLa": 119.388959,
            "fromlo": 32.363361,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#ADADAD"
        },
        {
            "id": 26,
            "createts": null,
            "modifyts": null,
            "cityName": "无锡",
            "saleStoreName": null,
            "fromLa": 120.270296,
            "fromlo": 31.90005,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#A9A9A9"
        },
        {
            "id": 27,
            "createts": null,
            "modifyts": null,
            "cityName": "昆明",
            "saleStoreName": null,
            "fromLa": 102.686472,
            "fromlo": 25.008286,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#A4D3EE"
        },
        {
            "id": 28,
            "createts": null,
            "modifyts": null,
            "cityName": "杭州",
            "saleStoreName": null,
            "fromLa": 120.096085,
            "fromlo": 30.313203,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#A1A1A1"
        },
        {
            "id": 29,
            "createts": null,
            "modifyts": null,
            "cityName": "武汉",
            "saleStoreName": null,
            "fromLa": 114.270967,
            "fromlo": 30.59572,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#9F79EE"
        },
        {
            "id": 30,
            "createts": null,
            "modifyts": null,
            "cityName": "沈阳",
            "saleStoreName": null,
            "fromLa": 123.384681,
            "fromlo": 41.803024,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#9B30FF"
        },
        {
            "id": 31,
            "createts": null,
            "modifyts": null,
            "cityName": "泉州",
            "saleStoreName": null,
            "fromLa": 118.599769,
            "fromlo": 24.882543,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#9A32CD"
        },
        {
            "id": 32,
            "createts": null,
            "modifyts": null,
            "cityName": "洛阳",
            "saleStoreName": null,
            "fromLa": 112.407547,
            "fromlo": 34.644496,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#98F5FF"
        },
        {
            "id": 33,
            "createts": null,
            "modifyts": null,
            "cityName": "济南",
            "saleStoreName": null,
            "fromLa": 117.006218,
            "fromlo": 36.595446,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#949494"
        },
        {
            "id": 34,
            "createts": null,
            "modifyts": null,
            "cityName": "海口",
            "saleStoreName": null,
            "fromLa": 109.862472,
            "fromlo": 18.454776,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#912CEE"
        },
        {
            "id": 35,
            "createts": null,
            "modifyts": null,
            "cityName": "深圳",
            "saleStoreName": null,
            "fromLa": 113.885756,
            "fromlo": 22.551531,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8EE5EE"
        },
        {
            "id": 36,
            "createts": null,
            "modifyts": null,
            "cityName": "温州",
            "saleStoreName": null,
            "fromLa": 120.681694,
            "fromlo": 28.006381,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8DEEEE"
        },
        {
            "id": 37,
            "createts": null,
            "modifyts": null,
            "cityName": "湖州",
            "saleStoreName": null,
            "fromLa": 120.102846,
            "fromlo": 30.866746,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B8B7A"
        },
        {
            "id": 38,
            "createts": null,
            "modifyts": null,
            "cityName": "烟台",
            "saleStoreName": null,
            "fromLa": 121.37308,
            "fromlo": 37.543501,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B8878"
        },
        {
            "id": 39,
            "createts": null,
            "modifyts": null,
            "cityName": "珠海",
            "saleStoreName": null,
            "fromLa": 113.520408,
            "fromlo": 22.226293,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B8378"
        },
        {
            "id": 40,
            "createts": null,
            "modifyts": null,
            "cityName": "石家庄",
            "saleStoreName": null,
            "fromLa": 114.523689,
            "fromlo": 38.043209,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B7D6B"
        },
        {
            "id": 41,
            "createts": null,
            "modifyts": null,
            "cityName": "福州",
            "saleStoreName": null,
            "fromLa": 119.3363,
            "fromlo": 26.090756,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B7500"
        },
        {
            "id": 42,
            "createts": null,
            "modifyts": null,
            "cityName": "绍兴",
            "saleStoreName": null,
            "fromLa": 120.580143,
            "fromlo": 29.985341,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B668B"
        },
        {
            "id": 43,
            "createts": null,
            "modifyts": null,
            "cityName": "舟山",
            "saleStoreName": null,
            "fromLa": 122.16409,
            "fromlo": 29.970764,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B5A2B"
        },
        {
            "id": 44,
            "createts": null,
            "modifyts": null,
            "cityName": "西安",
            "saleStoreName": null,
            "fromLa": 108.898987,
            "fromlo": 34.238785,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B4789"
        },
        {
            "id": 45,
            "createts": null,
            "modifyts": null,
            "cityName": "贵阳",
            "saleStoreName": null,
            "fromLa": 106.649665,
            "fromlo": 26.645575,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B4500"
        },
        {
            "id": 46,
            "createts": null,
            "modifyts": null,
            "cityName": "郑州",
            "saleStoreName": null,
            "fromLa": 113.716917,
            "fromlo": 34.762535,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B3626"
        },
        {
            "id": 47,
            "createts": null,
            "modifyts": null,
            "cityName": "重庆",
            "saleStoreName": null,
            "fromLa": 106.49767,
            "fromlo": 29.601397,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B1C62"
        },
        {
            "id": 48,
            "createts": null,
            "modifyts": null,
            "cityName": "金华",
            "saleStoreName": null,
            "fromLa": 119.63781,
            "fromlo": 29.079416,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#8B0000"
        },
        {
            "id": 49,
            "createts": null,
            "modifyts": null,
            "cityName": "长春",
            "saleStoreName": null,
            "fromLa": 125.350729,
            "fromlo": 43.894244,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#87CEFF"
        },
        {
            "id": 50,
            "createts": null,
            "modifyts": null,
            "cityName": "长沙",
            "saleStoreName": null,
            "fromLa": 112.935915,
            "fromlo": 28.221726,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#858585"
        },
        {
            "id": 51,
            "createts": null,
            "modifyts": null,
            "cityName": "青岛",
            "saleStoreName": null,
            "fromLa": 120.183262,
            "fromlo": 35.952313,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#ABABAB"
        },
        {
            "id": 52,
            "createts": null,
            "modifyts": null,
            "cityName": "鞍山",
            "saleStoreName": null,
            "fromLa": 122.994118,
            "fromlo": 41.109248,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "type": "normal",
            "userId": null,
            "color": "#A8A8A8"
        }
    ]
    var doneCity = [{
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "上海",
            "coords": [
                [
                    121.383863,
                    31.241423
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFF68F"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "临沂",
            "coords": [
                [
                    118.354238,
                    35.110037
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFEFD5"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "佛山",
            "coords": [
                [
                    113.142351,
                    23.015131
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFE4E1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "兰州",
            "coords": [
                [
                    103.862785,
                    36.072063
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFDEAD"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "北京",
            "coords": [
                [
                    116.309611,
                    39.863886
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFC1C1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南京",
            "coords": [
                [
                    118.728305,
                    32.002497
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFB90F"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南宁",
            "coords": [
                [
                    108.400417,
                    22.810224
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFA54F"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南昌",
            "coords": [
                [
                    115.855204,
                    28.685765
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF8C00"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "南通",
            "coords": [
                [
                    120.888446,
                    31.966087
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF7F50"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "厦门",
            "coords": [
                [
                    118.092514,
                    24.469729
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF6EB4"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "台州",
            "coords": [
                [
                    121.400611,
                    28.601611
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF4500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "合肥",
            "coords": [
                [
                    117.297564,
                    31.710295
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF3030"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "呼和浩特",
            "coords": [
                [
                    111.69747,
                    40.82795
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFF5EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "哈尔滨",
            "coords": [
                [
                    126.561466,
                    45.735821
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFEC8B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "唐山",
            "coords": [
                [
                    118.1767,
                    39.664336
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFE4C4"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "嘉兴",
            "coords": [
                [
                    120.730595,
                    30.75766
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFDAB9"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "大连",
            "coords": [
                [
                    121.584144,
                    38.885703
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFC125"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "天津",
            "coords": [
                [
                    117.179204,
                    39.093959
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFB6C1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "太原",
            "coords": [
                [
                    112.561385,
                    37.822709
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FFA500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "宁波",
            "coords": [
                [
                    121.266189,
                    30.175033
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF83FA"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "常州",
            "coords": [
                [
                    119.939633,
                    31.707966
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF7F24"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "广州",
            "coords": [
                [
                    113.314506,
                    23.125237
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF6A6A"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "徐州",
            "coords": [
                [
                    117.186228,
                    34.270442
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF4040"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "成都",
            "coords": [
                [
                    104.059444,
                    30.603827
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#FF83FA"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "扬州",
            "coords": [
                [
                    119.388959,
                    32.363361
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#ADADAD"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "无锡",
            "coords": [
                [
                    120.270296,
                    31.90005
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A9A9A9"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "昆明",
            "coords": [
                [
                    102.686472,
                    25.008286
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A4D3EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "杭州",
            "coords": [
                [
                    120.096085,
                    30.313203
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A1A1A1"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "武汉",
            "coords": [
                [
                    114.270967,
                    30.59572
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#9F79EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "沈阳",
            "coords": [
                [
                    123.384681,
                    41.803024
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#9B30FF"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "泉州",
            "coords": [
                [
                    118.599769,
                    24.882543
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#9A32CD"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "洛阳",
            "coords": [
                [
                    112.407547,
                    34.644496
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#98F5FF"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "济南",
            "coords": [
                [
                    117.006218,
                    36.595446
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#949494"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "海口",
            "coords": [
                [
                    109.862472,
                    18.454776
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#912CEE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "深圳",
            "coords": [
                [
                    113.885756,
                    22.551531
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8EE5EE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "温州",
            "coords": [
                [
                    120.681694,
                    28.006381
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8DEEEE"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "湖州",
            "coords": [
                [
                    120.102846,
                    30.866746
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B8B7A"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "烟台",
            "coords": [
                [
                    121.37308,
                    37.543501
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B8878"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "珠海",
            "coords": [
                [
                    113.520408,
                    22.226293
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B8378"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "石家庄",
            "coords": [
                [
                    114.523689,
                    38.043209
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B7D6B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "福州",
            "coords": [
                [
                    119.3363,
                    26.090756
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B7500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "绍兴",
            "coords": [
                [
                    120.580143,
                    29.985341
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B668B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "舟山",
            "coords": [
                [
                    122.16409,
                    29.970764
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B5A2B"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "西安",
            "coords": [
                [
                    108.898987,
                    34.238785
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B4789"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "贵阳",
            "coords": [
                [
                    106.649665,
                    26.645575
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B4500"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "郑州",
            "coords": [
                [
                    113.716917,
                    34.762535
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B3626"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "重庆",
            "coords": [
                [
                    106.49767,
                    29.601397
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B1C62"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "金华",
            "coords": [
                [
                    119.63781,
                    29.079416
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#8B0000"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "长春",
            "coords": [
                [
                    125.350729,
                    43.894244
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#87CEFF"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "长沙",
            "coords": [
                [
                    112.935915,
                    28.221726
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#858585"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "青岛",
            "coords": [
                [
                    120.183262,
                    35.952313
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#ABABAB"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "鞍山",
            "coords": [
                [
                    122.994118,
                    41.109248
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#A8A8A8"
        },
        {
            "name": "哔哩哔哩",
            "type": null,
            "symbol": "image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png",
            "fromName": "洛杉矶",
            "coords": [
                [
                    150.972421,
                    30.050227
                ],
                [
                    87.568283,
                    43.857571
                ]
            ],
            "userid": null,
            "color": "#87CEFF"
        }
    ]
    var color = ['#00ff78', '#ff971b', '#acff43', '#ff73b7', '#ffff46', '#27bbfe'];
    var series = [{
        type: 'map',
        map: 'china',
        //    width: '100%',
        geoIndex: 1,
        zlevel: 1,
        //    aspectScale: 0.75, //长宽比
        showLegendSymbol: false, // 存在legend时显示
        label: {
            normal: {
                show: false,
            },
            emphasis: {
                show: false,
                textStyle: {
                    color: '#fff'
                }
            }
        },
        roam: false,
        itemStyle: {
            normal: {
                areaColor: 'rgba(128, 128, 128, 0)',
                borderColor: '#49a7d5', //省市边界线00fcff 516a89

            },
            emphasis: {
                areaColor: 'rgba(128, 128, 128, 0)',
            }
        },
        data: [{
            name: '南海诸岛',
            value: 0,
            itemStyle: {
                normal: {
                    opacity: 0,
                    label: {
                        show: false
                    }
                }
            }
        }]
    }, {
        type: 'effectScatter',
        coordinateSystem: 'geo',
        zlevel: 4,
        symbolSize: 30,
        label: {
            normal: {
                show: true,
                position: 'left',
                formatter: '{b}',
                color: 'yellow',
                fontSize: 20,

            }
        },
        itemStyle: {
            normal: {
                color: '#c9b972'
            }
        },
        rippleEffect: {
            scale: 10,
            brushType: 'stroke'
        },
        data: [{
            name: "哔哩哔哩",
            value: [87.568283, 43.857571],
            visualMap: false
        }],
    }];
    flyCity.forEach(function(item) {
        series.push({
            name: item.name,
            type: 'lines',
            zlevel: 2,
            symbol: ['none'],
            effect: {
                show: true,
                period: 6,
                trailLength: 0.6,
                symbol: item.symbol,
                symbolSize: 30,
                loop: false
            },
            lineStyle: {
                normal: {
                    width: 0,
                    opacity: 0.1,
                    curveness: -0.1
                }
            },
            data: [{
                fromName: item.fromName,
                toName: item.toName,
                coords: item.coords
            }]

        })
    });
    //绘制已经起飞完成的线
    doneCity.forEach(function(item) {
        series.push({
            name: item.name,
            type: 'lines',
            zlevel: 2,
            lineStyle: {
                normal: {
                    color: item.color,
                    width: 2,
                    opacity: 0.4,
                    curveness: -0.2
                }
            },
            data: [{
                fromName: item.fromName,
                toName: item.toName,
                coords: item.coords
            }]

        })
    });

    //绘制所有城市 显示特效
    allCity.forEach(function(item) {
        series.push({
            type: 'effectScatter',
            coordinateSystem: 'geo',
            zlevel: 4,
            symbolSize: 10,
            rippleEffect: {
                scale: 10,
                brushType: 'stroke'
            },
            data: [{
                name: item.cityName,
                value: [item.fromLa, item.fromlo],
                visualMap: false
            }],
        })
    });



    myChart.on('click', function(params) {
        debugger
        if (params.name == '南宁') {
            series.push({
                name: '11',
                type: 'lines',
                zlevel: 2,
                symbol: ['none'],
                effect: {
                    show: true,
                    period: 6,
                    trailLength: 0.6,
                    symbol: 'image://http://wework.qpic.cn/bizmail/SSxvKWrg4FSfcA2TR076ribB4slGwdX1Wwk59yHuOicMtBDZnxLnB2BA/0',
                    symbolSize: 30,
                    loop: false
                },
                lineStyle: {
                    normal: {
                        width: 0,
                        opacity: 0.1,
                        curveness: -0.1
                    }
                },
                data: [{
                    fromName: '11',
                    toName: '22',
                    coords: [
                        [
                            103.862785,
                            36.072063
                        ],
                        [
                            87.568283,
                            43.857571
                        ]
                    ]
                }]

            })
        } else {
            series.push({
                name: '22',
                type: 'lines',
                zlevel: 2,
                symbol: ['none'],
                effect: {
                    show: true,
                    period: 6,
                    trailLength: 0.6,
                    symbol: 'image://https://markorwex-1256454203.cos.ap-beijing.myqcloud.com/2020/thirtyYear/circle2.png',
                    symbolSize: 30,
                    loop: false
                },
                lineStyle: {
                    normal: {
                        width: 0,
                        opacity: 0.1,
                        curveness: -0.1
                    }
                },
                data: [{
                    fromName: '11',
                    toName: '22',

                    coords: [
                        [
                            111.69747,
                            40.82795
                        ],
                        [
                            87.568283,
                            43.857571
                        ]
                    ]
                }]

            })
        }
        myChart.setOption(option)
    });


    option = {
        // backgroundColor: '#051b4a',
        tooltip: {
            trigger: 'item'
        },
        geo: {
            map: 'china',
            zoom: 1,
            label: {
                emphasis: {
                    show: false
                }
            },
            roam: true,
            itemStyle: {
                normal: {
                    borderColor: 'rgba(147, 235, 248, 1)',
                    borderWidth: 1,
                    areaColor: {
                        type: 'radial',
                        x: 0.5,
                        y: 0.5,
                        r: 0.8,
                        colorStops: [{
                            offset: 0,
                            color: 'rgba(147, 235, 248, 0)' // 0% 处的颜色
                        }, {
                            offset: 1,
                            color: 'rgba(147, 235, 248, .2)' // 100% 处的颜色
                        }],
                        globalCoord: false // 缺省为 false
                    },
                    shadowColor: 'rgba(128, 217, 248, 1)',
                    // shadowColor: 'rgba(255, 255, 255, 1)',
                    shadowOffsetX: -2,
                    shadowOffsetY: 2,
                    shadowBlur: 10
                },
                emphasis: {
                    areaColor: '#389BB7',
                    borderWidth: 0
                }
            }
        },
        series: series
    };
    myChart.setOption(option);
    window.addEventListener('resize', function() {
            myChart.resize();
        }),
        window.addEventListener('resize', function() {
            myChart.resize();
        })
})();